home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / Gestalt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  50.3 KB  |  1,500 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Gestalt.h
  3.  
  4.      Contains:    Gestalt Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1988-1997 by Apple Computer, Inc.  All rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __GESTALT__
  19. #define __GESTALT__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. #ifndef __MIXEDMODE__
  25. #include <MixedMode.h>
  26. #endif
  27.  
  28.  
  29.  
  30. #if PRAGMA_ONCE
  31. #pragma once
  32. #endif
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37.  
  38. #if PRAGMA_IMPORT
  39. #pragma import on
  40. #endif
  41.  
  42. #if PRAGMA_STRUCT_ALIGN
  43.     #pragma options align=mac68k
  44. #elif PRAGMA_STRUCT_PACKPUSH
  45.     #pragma pack(push, 2)
  46. #elif PRAGMA_STRUCT_PACK
  47.     #pragma pack(2)
  48. #endif
  49.  
  50.  
  51.  
  52. typedef CALLBACK_API( OSErr , SelectorFunctionProcPtr )(OSType selector, long *response);
  53. typedef STACK_UPP_TYPE(SelectorFunctionProcPtr)                 SelectorFunctionUPP;
  54. enum { uppSelectorFunctionProcInfo = 0x000003E0 };                 /* pascal 2_bytes Func(4_bytes, 4_bytes) */
  55. #define NewSelectorFunctionProc(userRoutine)                     (SelectorFunctionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSelectorFunctionProcInfo, GetCurrentArchitecture())
  56. #define CallSelectorFunctionProc(userRoutine, selector, response)  CALL_TWO_PARAMETER_UPP((userRoutine), uppSelectorFunctionProcInfo, (selector), (response))
  57.  
  58.  
  59.  
  60. /*
  61.     Note:     The Gestalt trap was not implemented until System 6.0.5.  If you want to call Gestalt
  62.             while running on System 6.0 machines, then define USE_GESTALT_GLUE and link with
  63.             Interface.o which contains glue to implement Gestalt on pre-System 6.0.5 machines.
  64. */
  65. #ifdef USE_GESTALT_GLUE
  66. EXTERN_API( OSErr )
  67. Gestalt                            (OSType                 selector,
  68.                                  long *                    response);
  69.  
  70. #else
  71.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  72.                                                                                             #pragma parameter __D0 Gestalt(__D0, __A1)
  73.                                                                                             #endif
  74. EXTERN_API( OSErr )
  75. Gestalt                            (OSType                 selector,
  76.                                  long *                    response)                            TWOWORDINLINE(0xA1AD, 0x2288);
  77.  
  78. #endif  /*  defined(USE_GESTALT_GLUE)  */
  79.  
  80.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  81.                                                                                             #pragma parameter __D0 ReplaceGestalt(__D0, __A0, __A1)
  82.                                                                                             #endif
  83. EXTERN_API( OSErr )
  84. ReplaceGestalt                    (OSType                 selector,
  85.                                  SelectorFunctionUPP     gestaltFunction,
  86.                                  SelectorFunctionUPP *    oldGestaltFunction)                    FOURWORDINLINE(0x2F09, 0xA5AD, 0x225F, 0x2288);
  87.  
  88.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  89.                                                                                             #pragma parameter __D0 NewGestalt(__D0, __A0)
  90.                                                                                             #endif
  91. EXTERN_API( OSErr )
  92. NewGestalt                        (OSType                 selector,
  93.                                  SelectorFunctionUPP     gestaltFunction)                    ONEWORDINLINE(0xA3AD);
  94.  
  95. /*
  96.       These functions (and SetGestaltValue) are built into System 7.5,
  97.       but not on earlier systems
  98. */
  99.  
  100. EXTERN_API( OSErr )
  101. NewGestaltValue                    (OSType                 selector,
  102.                                  long                     newValue)                            THREEWORDINLINE(0x303C, 0x0401, 0xABF1);
  103.  
  104. EXTERN_API( OSErr )
  105. ReplaceGestaltValue                (OSType                 selector,
  106.                                  long                     replacementValue)                    THREEWORDINLINE(0x303C, 0x0402, 0xABF1);
  107.  
  108. EXTERN_API( OSErr )
  109. SetGestaltValue                    (OSType                 selector,
  110.                                  long                     newValue)                            THREEWORDINLINE(0x303C, 0x0404, 0xABF1);
  111.  
  112. EXTERN_API( OSErr )
  113. DeleteGestaltValue                (OSType                 selector)                            THREEWORDINLINE(0x303C, 0x0203, 0xABF1);
  114.  
  115.  
  116.  
  117. /* Environment Selectors */
  118.  
  119. enum {
  120.     gestaltAddressingModeAttr    = FOUR_CHAR_CODE('addr'),        /* addressing mode attributes */
  121.     gestalt32BitAddressing        = 0,                            /* using 32-bit addressing mode */
  122.     gestalt32BitSysZone            = 1,                            /* 32-bit compatible system zone */
  123.     gestalt32BitCapable            = 2                                /* Machine is 32-bit capable */
  124. };
  125.  
  126.  
  127. enum {
  128.     gestaltAliasMgrAttr            = FOUR_CHAR_CODE('alis'),        /* Alias Mgr Attributes */
  129.     gestaltAliasMgrPresent        = 0,                            /* True if the Alias Mgr is present */
  130.     gestaltAliasMgrSupportsRemoteAppletalk = 1,                    /* True if the Alias Mgr knows about Remote Appletalk */
  131.     gestaltAliasMgrSupportsAOCEKeychain = 2                        /* True if the Alias Mgr knows about the AOCE Keychain */
  132. };
  133.  
  134.  
  135. enum {
  136.     gestaltAppleScriptVersion    = FOUR_CHAR_CODE('ascv')        /* AppleScript version*/
  137. };
  138.  
  139.  
  140. enum {
  141.     gestaltAppleScriptAttr        = FOUR_CHAR_CODE('ascr'),        /* AppleScript attributes*/
  142.     gestaltAppleScriptPresent    = 0,
  143.     gestaltAppleScriptPowerPCSupport = 1
  144. };
  145.  
  146.  
  147. enum {
  148.     gestaltATAAttr                = FOUR_CHAR_CODE('ata '),        /* ATA is the driver to support IDE hard disks */
  149.     gestaltATAPresent            = 0                                /* if set, ATA Manager is present */
  150. };
  151.  
  152.  
  153. enum {
  154.     gestaltATalkVersion            = FOUR_CHAR_CODE('atkv')        /* Detailed AppleTalk version; see comment above for format */
  155. };
  156.  
  157.  
  158. enum {
  159.     gestaltAppleTalkVersion        = FOUR_CHAR_CODE('atlk')        /* appletalk version */
  160. };
  161.  
  162. /*
  163.     FORMAT OF gestaltATalkVersion RESPONSE
  164.     --------------------------------------
  165.     The version is stored in the high three bytes of the response value.  Let us number
  166.     the bytes in the response value from 0 to 3, where 0 is the least-significant byte.
  167.  
  168.         Byte#:       3 2 1 0
  169.         Value:    0xMMNNRR00
  170.  
  171.     Byte 3 (MM) contains the major revision number, byte 2 (NN) contains the minor
  172.     revision number, and byte 1 (RR) contains a constant that represents the release
  173.     stage.  Byte 0 always contains 0x00.  The constants for the release stages are:
  174.  
  175.         development = 0x20
  176.         alpha        = 0x40
  177.         beta        = 0x60
  178.         final        = 0x80
  179.         release        = 0x80
  180.  
  181.     For example, if you call Gestalt with the 'atkv' selector when AppleTalk version 57
  182.     is loaded, you receive the long integer response value 0x39008000.
  183. */
  184.  
  185. enum {
  186.     gestaltAUXVersion            = FOUR_CHAR_CODE('a/ux')        /* a/ux version, if present */
  187. };
  188.  
  189.  
  190. enum {
  191.     gestaltBusClkSpeed            = FOUR_CHAR_CODE('bclk')        /* main I/O bus clock speed in hertz */
  192. };
  193.  
  194.  
  195. enum {
  196.     gestaltCloseViewAttr        = FOUR_CHAR_CODE('BSDa'),        /* CloseView attributes */
  197.     gestaltCloseViewEnabled        = 0,                            /* Closeview enabled (dynamic bit - returns current state) */
  198.     gestaltCloseViewDisplayMgrFriendly = 1                        /* Closeview compatible with Display Manager (FUTURE) */
  199. };
  200.  
  201.  
  202. enum {
  203.     gestaltCFMAttr                = FOUR_CHAR_CODE('cfrg'),        /* returns information about the Code Fragment Manager */
  204.     gestaltCFMPresent            = 0                                /* true if the Code Fragment Manager is present */
  205. };
  206.  
  207.  
  208. enum {
  209.     gestaltCollectionMgrVersion    = FOUR_CHAR_CODE('cltn')        /* Collection Manager version */
  210. };
  211.  
  212.  
  213. enum {
  214.     gestaltColorMatchingAttr    = FOUR_CHAR_CODE('cmta'),        /* ColorSync attributes */
  215.     gestaltHighLevelMatching    = 0,
  216.     gestaltColorMatchingLibLoaded = 1
  217. };
  218.  
  219.  
  220. enum {
  221.     gestaltColorMatchingVersion    = FOUR_CHAR_CODE('cmtc'),
  222.     gestaltColorSync10            = 0x0100,                        /* 0x0100 & 0x0110 _Gestalt versions for 1.0-1.0.3 product */
  223.     gestaltColorSync11            = 0x0110,                        /*   0x0100 == low-level matching only */
  224.     gestaltColorSync104            = 0x0104,                        /* Real version, by popular demand */
  225.     gestaltColorSync105            = 0x0105,
  226.     gestaltColorSync20            = 0x0200                        /* ColorSync 2.0 */
  227. };
  228.  
  229.  
  230. enum {
  231.     gestaltConnMgrAttr            = FOUR_CHAR_CODE('conn'),        /* connection mgr attributes    */
  232.     gestaltConnMgrPresent        = 0,
  233.     gestaltConnMgrCMSearchFix    = 1,                            /* Fix to CMAddSearch?     */
  234.     gestaltConnMgrErrorString    = 2,                            /* has CMGetErrorString() */
  235.     gestaltConnMgrMultiAsyncIO    = 3                                /* CMNewIOPB, CMDisposeIOPB, CMPBRead, CMPBWrite, CMPBIOKill */
  236. };
  237.  
  238.  
  239. enum {
  240.     gestaltColorPickerVersion    = FOUR_CHAR_CODE('cpkr'),        /* returns version of ColorPicker */
  241.     gestaltColorPicker            = FOUR_CHAR_CODE('cpkr')        /* gestaltColorPicker is old name for gestaltColorPickerVersion */
  242. };
  243.  
  244.  
  245. enum {
  246.     gestaltComponentMgr            = FOUR_CHAR_CODE('cpnt')        /* Component Mgr version */
  247. };
  248.  
  249. /*
  250.     The gestaltNativeCPUtype ('cput') selector can be used to determine the
  251.     native CPU type for all Macs running System 7.5 or later.
  252.  
  253.     The 'cput' selector is not available when running System 7.0 (or earlier)
  254.     on most 68K machines.  If 'cput' is not available, then the 'proc' selector
  255.     should be used to determine the processor type.
  256.  
  257.     An application should always try the 'cput' selector first.  This is because,
  258.     on PowerPC machines, the 'proc' selector will reflect the CPU type of the
  259.     emulator's "virtual processor" rather than the native CPU type.
  260.  
  261.     The values specified below are accurate.  Prior versions of the Gestalt
  262.     interface file contained values that were off by one.
  263.  
  264.     The Quadra 840AV and the Quadra 660AV contain a bug in the ROM code that
  265.     causes the 'cput' selector to respond with the value 5.  This behavior
  266.     occurs only when running System 7.1.  System 7.5 fixes the bug by replacing
  267.     the faulty 'cput' selector function with the correct one.
  268.  
  269.     The gestaltNativeCPUfamily ('cpuf') selector can be used to determine the
  270.     general family the native CPU is in. This can be helpful for determing how
  271.     blitters and things should be written. In general, it is smarter to use this
  272.     selector (when available) than gestaltNativeCPUtype since newer processors
  273.     in the same family can be handled without revising your code.
  274.  
  275.     gestaltNativeCPUfamily uses the same results as gestaltNativeCPUtype, but
  276.     will only return certain CPU values.
  277. */
  278.  
  279. enum {
  280.     gestaltNativeCPUtype        = FOUR_CHAR_CODE('cput'),        /* Native CPU type                                       */
  281.     gestaltNativeCPUfamily        = FOUR_CHAR_CODE('cpuf'),        /* Native CPU family                                  */
  282.     gestaltCPU68000                = 0,                            /* Various 68k CPUs...     */
  283.     gestaltCPU68010                = 1,
  284.     gestaltCPU68020                = 2,
  285.     gestaltCPU68030                = 3,
  286.     gestaltCPU68040                = 4,
  287.     gestaltCPU601                = 0x0101,                        /* IBM 601                                                 */
  288.     gestaltCPU603                = 0x0103,
  289.     gestaltCPU604                = 0x0104,
  290.     gestaltCPU603e                = 0x0106,
  291.     gestaltCPU603ev                = 0x0107,
  292.     gestaltCPU604e                = 0x0109
  293. };
  294.  
  295.  
  296. enum {
  297.     gestaltCRMAttr                = FOUR_CHAR_CODE('crm '),        /* comm resource mgr attributes */
  298.     gestaltCRMPresent            = 0,
  299.     gestaltCRMPersistentFix        = 1,                            /* fix for persistent tools */
  300.     gestaltCRMToolRsrcCalls        = 2                                /* has CRMGetToolResource/ReleaseToolResource */
  301. };
  302.  
  303.  
  304. enum {
  305.     gestaltControlStripVersion    = FOUR_CHAR_CODE('csvr')        /* Control Strip version (was 'sdvr') */
  306. };
  307.  
  308.  
  309. enum {
  310.     gestaltCTBVersion            = FOUR_CHAR_CODE('ctbv')        /* CommToolbox version */
  311. };
  312.  
  313.  
  314. enum {
  315.     gestaltDBAccessMgrAttr        = FOUR_CHAR_CODE('dbac'),        /* Database Access Mgr attributes */
  316.     gestaltDBAccessMgrPresent    = 0                                /* True if Database Access Mgr present */
  317. };
  318.  
  319.  
  320. enum {
  321.     gestaltSDPFindVersion        = FOUR_CHAR_CODE('dfnd')        /* OCE Standard Directory Panel*/
  322. };
  323.  
  324.  
  325. enum {
  326.     gestaltDictionaryMgrAttr    = FOUR_CHAR_CODE('dict'),        /* Dictionary Manager attributes */
  327.     gestaltDictionaryMgrPresent    = 0                                /* Dictionary Manager attributes */
  328. };
  329.  
  330.  
  331. enum {
  332.     gestaltDITLExtAttr            = FOUR_CHAR_CODE('ditl'),        /* AppenDITL, etc. calls from CTB */
  333.     gestaltDITLExtPresent        = 0,                            /* True if calls are present */
  334.     gestaltDITLExtSupportsIctb    = 1                                /* True if AppendDITL, ShortenDITL support 'ictb's */
  335. };
  336.  
  337.  
  338. enum {
  339.     gestaltDesktopPicturesAttr    = FOUR_CHAR_CODE('dkpx'),        /* Desktop Pictures attributes */
  340.     gestaltDesktopPicturesInstalled = 0,                        /* True if control panel is installed */
  341.     gestaltDesktopPicturesDisplayed = 1                            /* True if a picture is currently displayed */
  342. };
  343.  
  344.  
  345. enum {
  346.     gestaltDisplayMgrVers        = FOUR_CHAR_CODE('dplv')        /* Display Manager version */
  347. };
  348.  
  349.  
  350. enum {
  351.     gestaltDisplayMgrAttr        = FOUR_CHAR_CODE('dply'),        /* Display Manager attributes */
  352.     gestaltDisplayMgrPresent    = 0,                            /* True if Display Mgr is present */
  353.     gestaltDisplayMgrCanSwitchMirrored = 2,                        /* True if Display Mgr can switch modes on mirrored displays */
  354.     gestaltDisplayMgrSetDepthNotifies = 3,                        /* True SetDepth generates displays mgr notification */
  355.     gestaltDisplayMgrCanConfirm    = 4                                /* True Display Manager supports DMConfirmConfiguration */
  356. };
  357.  
  358.  
  359. enum {
  360.     gestaltDragMgrAttr            = FOUR_CHAR_CODE('drag'),        /* Drag Manager attributes */
  361.     gestaltDragMgrPresent        = 0,                            /* Drag Manager is present */
  362.     gestaltDragMgrFloatingWind    = 1,                            /* Drag Manager supports floating windows */
  363.     gestaltPPCDragLibPresent    = 2,                            /* Drag Manager PPC DragLib is present */
  364.     gestaltDragMgrHasImageSupport = 3,                            /* Drag Manager allows SetDragImage call */
  365.     gestaltCanStartDragInFloatWindow = 4                        /* Drag Manager supports starting a drag in a floating window */
  366. };
  367.  
  368.  
  369. enum {
  370.     gestaltDigitalSignatureVersion = FOUR_CHAR_CODE('dsig')        /* returns Digital Signature Toolbox version in low-order word*/
  371. };
  372.  
  373.  
  374. enum {
  375.     gestaltEasyAccessAttr        = FOUR_CHAR_CODE('easy'),        /* Easy Access attributes */
  376.     gestaltEasyAccessOff        = 0,                            /* if Easy Access present, but off (no icon) */
  377.     gestaltEasyAccessOn            = 1,                            /* if Easy Access "On" */
  378.     gestaltEasyAccessSticky        = 2,                            /* if Easy Access "Sticky" */
  379.     gestaltEasyAccessLocked        = 3                                /* if Easy Access "Locked" */
  380. };
  381.  
  382.  
  383. enum {
  384.     gestaltEditionMgrAttr        = FOUR_CHAR_CODE('edtn'),        /* Edition Mgr attributes */
  385.     gestaltEditionMgrPresent    = 0,                            /* True if Edition Mgr present */
  386.     gestaltEditionMgrTranslationAware = 1                        /* True if edition manager is translation manager aware */
  387. };
  388.  
  389.  
  390. enum {
  391.     gestaltAppleEventsAttr        = FOUR_CHAR_CODE('evnt'),        /* Apple Events attributes */
  392.     gestaltAppleEventsPresent    = 0,                            /* True if Apple Events present */
  393.     gestaltScriptingSupport        = 1,
  394.     gestaltOSLInSystem            = 2                                /* OSL is in system so don’t use the one linked in to app */
  395. };
  396.  
  397.  
  398. enum {
  399.     gestaltFloppyAttr            = FOUR_CHAR_CODE('flpy'),        /* Floppy disk drive/driver attributes */
  400.     gestaltFloppyIsMFMOnly        = 0,                            /* Floppy driver only supports MFM disk formats */
  401.     gestaltFloppyIsManualEject    = 1,                            /* Floppy drive, driver, and file system are in manual-eject mode */
  402.     gestaltFloppyUsesDiskInPlace = 2                            /* Floppy drive must have special DISK-IN-PLACE output; standard DISK-CHANGED not used */
  403. };
  404.  
  405.  
  406. enum {
  407.     gestaltFinderAttr            = FOUR_CHAR_CODE('fndr'),        /* Finder attributes */
  408.     gestaltFinderDropEvent        = 0,                            /* Finder recognizes drop event */
  409.     gestaltFinderMagicPlacement    = 1,                            /* Finder supports magic icon placement */
  410.     gestaltFinderCallsAEProcess    = 2,                            /* Finder calls AEProcessAppleEvent */
  411.     gestaltOSLCompliantFinder    = 3,                            /* Finder is scriptable and recordable */
  412.     gestaltFinderSupports4GBVolumes = 4,                        /* Finder correctly handles 4GB volumes */
  413.     gestaltFinderHasClippings    = 6,                            /* Finder supports Drag Manager clipping files */
  414.     gestaltFinderFullDragManagerSupport = 7                        /* Finder accepts 'hfs ' flavors properly */
  415. };
  416.  
  417.  
  418. enum {
  419.     gestaltFindFolderAttr        = FOUR_CHAR_CODE('fold'),        /* Folder Mgr attributes */
  420.     gestaltFindFolderPresent    = 0,                            /* True if Folder Mgr present */
  421.     gestaltFolderDescSupport    = 1                                /* Tru if Folder Mgr has FolderDesc calls */
  422. };
  423.  
  424.  
  425.  
  426. enum {
  427.     gestaltFontMgrAttr            = FOUR_CHAR_CODE('font'),        /* Font Mgr attributes */
  428.     gestaltOutlineFonts            = 0                                /* True if Outline Fonts supported */
  429. };
  430.  
  431.  
  432. enum {
  433.     gestaltFPUType                = FOUR_CHAR_CODE('fpu '),        /* fpu type */
  434.     gestaltNoFPU                = 0,                            /* no FPU */
  435.     gestalt68881                = 1,                            /* 68881 FPU */
  436.     gestalt68882                = 2,                            /* 68882 FPU */
  437.     gestalt68040FPU                = 3                                /* 68040 built-in FPU */
  438. };
  439.  
  440.  
  441. enum {
  442.     gestaltFSAttr                = FOUR_CHAR_CODE('fs  '),        /* file system attributes */
  443.     gestaltFullExtFSDispatching    = 0,                            /* has really cool new HFSDispatch dispatcher */
  444.     gestaltHasFSSpecCalls        = 1,                            /* has FSSpec calls */
  445.     gestaltHasFileSystemManager    = 2,                            /* has a file system manager */
  446.     gestaltFSMDoesDynamicLoad    = 3,                            /* file system manager supports dynamic loading */
  447.     gestaltFSSupports4GBVols    = 4,                            /* file system supports 4 gigabyte volumes */
  448.     gestaltFSSupports2TBVols    = 5,                            /* file system supports 2 terabyte volumes */
  449.     gestaltHasExtendedDiskInit    = 6,                            /* has extended Disk Initialization calls */
  450.     gestaltDTMgrSupportsFSM        = 7                                /* Desktop Manager support FSM-based foreign file systems */
  451. };
  452.  
  453.  
  454. enum {
  455.     gestaltFSMVersion            = FOUR_CHAR_CODE('fsm ')        /* returns version of HFS External File Systems Manager (FSM) */
  456. };
  457.  
  458.  
  459. enum {
  460.     gestaltFXfrMgrAttr            = FOUR_CHAR_CODE('fxfr'),        /* file transfer manager attributes */
  461.     gestaltFXfrMgrPresent        = 0,
  462.     gestaltFXfrMgrMultiFile        = 1,                            /* supports FTSend and FTReceive */
  463.     gestaltFXfrMgrErrorString    = 2,                            /* supports FTGetErrorString */
  464.     gestaltFXfrMgrAsync            = 3                                /*supports FTSendAsync, FTReceiveAsync, FTCompletionAsync*/
  465. };
  466.  
  467.  
  468. enum {
  469.     gestaltGraphicsAttr            = FOUR_CHAR_CODE('gfxa'),        /* Quickdraw GX attributes selector */
  470.     gestaltGraphicsIsDebugging    = 0x00000001,
  471.     gestaltGraphicsIsLoaded        = 0x00000002,
  472.     gestaltGraphicsIsPowerPC    = 0x00000004
  473. };
  474.  
  475.  
  476. enum {
  477.     gestaltGraphicsVersion        = FOUR_CHAR_CODE('grfx'),        /* Quickdraw GX version selector */
  478.     gestaltCurrentGraphicsVersion = 0x00010200                    /* the version described in this set of headers */
  479. };
  480.  
  481.  
  482. enum {
  483.     gestaltHardwareAttr            = FOUR_CHAR_CODE('hdwr'),        /* hardware attributes */
  484.     gestaltHasVIA1                = 0,                            /* VIA1 exists */
  485.     gestaltHasVIA2                = 1,                            /* VIA2 exists */
  486.     gestaltHasASC                = 3,                            /* Apple Sound Chip exists */
  487.     gestaltHasSCC                = 4,                            /* SCC exists */
  488.     gestaltHasSCSI                = 7,                            /* SCSI exists */
  489.     gestaltHasSoftPowerOff        = 19,                            /* Capable of software power off */
  490.     gestaltHasSCSI961            = 21,                            /* 53C96 SCSI controller on internal bus */
  491.     gestaltHasSCSI962            = 22,                            /* 53C96 SCSI controller on external bus */
  492.     gestaltHasUniversalROM        = 24,                            /* Do we have a Universal ROM? */
  493.     gestaltHasEnhancedLtalk        = 30                            /* Do we have Enhanced LocalTalk? */
  494. };
  495.  
  496.  
  497. enum {
  498.     gestaltHelpMgrAttr            = FOUR_CHAR_CODE('help'),        /* Help Mgr Attributes */
  499.     gestaltHelpMgrPresent        = 0,                            /* true if help mgr is present */
  500.     gestaltHelpMgrExtensions    = 1,                            /* true if help mgr extensions are installed */
  501.     gestaltAppleGuideIsDebug    = 30,
  502.     gestaltAppleGuidePresent    = 31                            /* true if AppleGuide is installed */
  503. };
  504.  
  505.  
  506. enum {
  507.     gestaltHardwareVendorCode    = FOUR_CHAR_CODE('hrad'),        /* Returns hardware vendor information */
  508.     gestaltHardwareVendorApple    = FOUR_CHAR_CODE('Appl')        /* Hardware built by Apple */
  509. };
  510.  
  511.  
  512. enum {
  513.     gestaltCompressionMgr        = FOUR_CHAR_CODE('icmp')        /* returns version of the Image Compression Manager */
  514. };
  515.  
  516.  
  517. enum {
  518.     gestaltIconUtilitiesAttr    = FOUR_CHAR_CODE('icon'),        /* Icon Utilities attributes  (Note: available in System 7.0, despite gestalt) */
  519.     gestaltIconUtilitiesPresent    = 0                                /* true if icon utilities are present */
  520. };
  521.  
  522.  
  523. enum {
  524.     gestaltInternalDisplay        = FOUR_CHAR_CODE('idsp')        /* slot number of internal display location */
  525. };
  526.  
  527. /*
  528.     To obtain information about the connected keyboard(s), one should
  529.     use the ADB Manager API.  See Technical Note OV16 for details.
  530. */
  531.  
  532. enum {
  533.     gestaltKeyboardType            = FOUR_CHAR_CODE('kbd '),        /* keyboard type */
  534.     gestaltMacKbd                = 1,
  535.     gestaltMacAndPad            = 2,
  536.     gestaltMacPlusKbd            = 3,
  537.     gestaltExtADBKbd            = 4,
  538.     gestaltStdADBKbd            = 5,
  539.     gestaltPrtblADBKbd            = 6,
  540.     gestaltPrtblISOKbd            = 7,
  541.     gestaltStdISOADBKbd            = 8,
  542.     gestaltExtISOADBKbd            = 9,
  543.     gestaltADBKbdII                = 10,
  544.     gestaltADBISOKbdII            = 11,
  545.     gestaltPwrBookADBKbd        = 12,
  546.     gestaltPwrBookISOADBKbd        = 13,
  547.     gestaltAppleAdjustKeypad    = 14,
  548.     gestaltAppleAdjustADBKbd    = 15,
  549.     gestaltAppleAdjustISOKbd    = 16,
  550.     gestaltJapanAdjustADBKbd    = 17,                            /* Japan Adjustable Keyboard */
  551.     gestaltPwrBkExtISOKbd        = 20,                            /* PowerBook Extended International Keyboard with function keys */
  552.     gestaltPwrBkExtJISKbd        = 21,                            /* PowerBook Extended Japanese Keyboard with function keys         */
  553.     gestaltPwrBkExtADBKbd        = 24,                            /* PowerBook Extended Domestic Keyboard with function keys         */
  554.     gestaltPS2Keyboard            = 27,                            /* PS2 keyboard */
  555.     gestaltPwrBkSubDomKbd        = 28,                            /* PowerBook Subnote Domestic Keyboard with function keys w/  inverted T     */
  556.     gestaltPwrBkSubISOKbd        = 29,                            /* PowerBook Subnote International Keyboard with function keys w/  inverted T     */
  557.     gestaltPwrBkSubJISKbd        = 30                            /* PowerBook Subnote Japanese Keyboard with function keys w/ inverted T         */
  558. };
  559.  
  560.  
  561. enum {
  562.     gestaltLowMemorySize        = FOUR_CHAR_CODE('lmem')        /* size of low memory area */
  563. };
  564.  
  565.  
  566. enum {
  567.     gestaltLogicalRAMSize        = FOUR_CHAR_CODE('lram')        /* logical ram size */
  568. };
  569.  
  570. /*
  571.     MACHINE TYPE CONSTANTS NAMING CONVENTION
  572.  
  573.         All future machine type constant names take the following form:
  574.  
  575.             gestalt<lineName><modelNumber>
  576.  
  577.     Line Names
  578.  
  579.         The following table contains the lines currently produced by Apple and the
  580.         lineName substrings associated with them:
  581.  
  582.             Line                        lineName
  583.             -------------------------    ------------
  584.             Macintosh LC                "MacLC"
  585.             Macintosh Performa            "Performa"
  586.             Macintosh PowerBook            "PowerBook"
  587.             Macintosh PowerBook Duo        "PowerBookDuo"
  588.             Power Macintosh                "PowerMac"
  589.             Apple Workgroup Server        "AWS"
  590.  
  591.         The following table contains lineNames for some discontinued lines:
  592.  
  593.             Line                        lineName
  594.             -------------------------    ------------
  595.             Macintosh Quadra            "MacQuadra" (preferred)
  596.                                         "Quadra" (also used, but not preferred)
  597.             Macintosh Centris            "MacCentris"
  598.  
  599.     Model Numbers
  600.  
  601.         The modelNumber is a string representing the specific model of the machine
  602.         within its particular line.  For example, for the Power Macintosh 8100/80,
  603.         the modelNumber is "8100".
  604.  
  605.         Some Performa & LC model numbers contain variations in the rightmost 1 or 2
  606.         digits to indicate different RAM and Hard Disk configurations.  A single
  607.         machine type is assigned for all variations of a specific model number.  In
  608.         this case, the modelNumber string consists of the constant leftmost part
  609.         of the model number with 0s for the variant digits.  For example, the
  610.         Performa 6115 and Performa 6116 are both return the same machine type
  611.         constant:  gestaltPerforma6100.
  612.  
  613.  
  614.     OLD NAMING CONVENTIONS
  615.  
  616.     The "Underscore Speed" suffix
  617.  
  618.         In the past, Apple differentiated between machines that had the same model
  619.         number but different speeds.  For example, the Power Macintosh 8100/80 and
  620.         Power Macintosh 8100/100 return different machine type constants.  This is
  621.         why some existing machine type constant names take the form:
  622.  
  623.             gestalt<lineName><modelNumber>_<speed>
  624.  
  625.         e.g.
  626.  
  627.             gestaltPowerMac8100_110
  628.             gestaltPowerMac7100_80
  629.             gestaltPowerMac7100_66
  630.  
  631.         It is no longer necessary to use the "underscore speed" suffix.  Starting with
  632.         the Power Surge machines (Power Macintosh 7200, 7500, 8500 and 9500), speed is
  633.         no longer used to differentiate between machine types.  This is why a Power
  634.         Macintosh 7200/75 and a Power Macintosh 7200/90 return the same machine type
  635.         constant:  gestaltPowerMac7200.
  636.  
  637.     The "Screen Type" suffix
  638.  
  639.         All PowerBook models prior to the PowerBook 190, and all PowerBook Duo models
  640.         before the PowerBook Duo 2300 take the form:
  641.  
  642.             gestalt<lineName><modelNumber><screenType>
  643.  
  644.         Where <screenType> is "c" or the empty string.
  645.  
  646.         e.g.
  647.  
  648.             gestaltPowerBook100
  649.             gestaltPowerBookDuo280
  650.             gestaltPowerBookDuo280c
  651.             gestaltPowerBook180
  652.             gestaltPowerBook180c
  653.  
  654.         Starting with the PowerBook 190 series and the PowerBook Duo 2300 series, machine
  655.         types are no longer differentiated based on screen type.  This is why a PowerBook
  656.         5300cs/100 and a PowerBook 5300c/100 both return the same machine type constant:
  657.         gestaltPowerBook5300.
  658.  
  659.         Macintosh LC 630                gestaltMacLC630
  660.         Macintosh Performa 6200            gestaltPerforma6200
  661.         Macintosh Quadra 700            gestaltQuadra700
  662.         Macintosh PowerBook 5300        gestaltPowerBook5300
  663.         Macintosh PowerBook Duo 2300    gestaltPowerBookDuo2300
  664.         Power Macintosh 8500            gestaltPowerMac8500
  665. */
  666.  
  667.  
  668. enum {
  669.     gestaltMachineType            = FOUR_CHAR_CODE('mach'),        /* machine type */
  670.     gestaltClassic                = 1,
  671.     gestaltMacXL                = 2,
  672.     gestaltMac512KE                = 3,
  673.     gestaltMacPlus                = 4,
  674.     gestaltMacSE                = 5,
  675.     gestaltMacII                = 6,
  676.     gestaltMacIIx                = 7,
  677.     gestaltMacIIcx                = 8,
  678.     gestaltMacSE030                = 9,
  679.     gestaltPortable                = 10,
  680.     gestaltMacIIci                = 11,
  681.     gestaltPowerMac8100_120        = 12,
  682.     gestaltMacIIfx                = 13,
  683.     gestaltMacClassic            = 17,
  684.     gestaltMacIIsi                = 18,
  685.     gestaltMacLC                = 19,
  686.     gestaltMacQuadra900            = 20,
  687.     gestaltPowerBook170            = 21,
  688.     gestaltMacQuadra700            = 22,
  689.     gestaltClassicII            = 23,
  690.     gestaltPowerBook100            = 24,
  691.     gestaltPowerBook140            = 25,
  692.     gestaltMacQuadra950            = 26,
  693.     gestaltMacLCIII                = 27,
  694.     gestaltPerforma450            = gestaltMacLCIII,
  695.     gestaltPowerBookDuo210        = 29,
  696.     gestaltMacCentris650        = 30,
  697.     gestaltPowerBookDuo230        = 32,
  698.     gestaltPowerBook180            = 33,
  699.     gestaltPowerBook160            = 34,
  700.     gestaltMacQuadra800            = 35,
  701.     gestaltMacQuadra650            = 36,
  702.     gestaltMacLCII                = 37,
  703.     gestaltPowerBookDuo250        = 38,
  704.     gestaltAWS9150_80            = 39,
  705.     gestaltPowerMac8100_110        = 40,
  706.     gestaltAWS8150_110            = gestaltPowerMac8100_110,
  707.     gestaltPowerMac5200            = 41,
  708.     gestaltPowerMac5260            = gestaltPowerMac5200,
  709.     gestaltPerforma5300            = gestaltPowerMac5200,
  710.     gestaltPowerMac6200            = 42,
  711.     gestaltPerforma6300            = gestaltPowerMac6200,
  712.     gestaltMacIIvi                = 44,
  713.     gestaltMacIIvm                = 45,
  714.     gestaltPerforma600            = gestaltMacIIvm,
  715.     gestaltPowerMac7100_80        = 47,
  716.     gestaltMacIIvx                = 48,
  717.     gestaltMacColorClassic        = 49,
  718.     gestaltPerforma250            = gestaltMacColorClassic,
  719.     gestaltPowerBook165c        = 50,
  720.     gestaltMacCentris610        = 52,
  721.     gestaltMacQuadra610            = 53,
  722.     gestaltPowerBook145            = 54,
  723.     gestaltPowerMac8100_100        = 55,
  724.     gestaltMacLC520                = 56,
  725.     gestaltAWS9150_120            = 57,
  726.     gestaltPowerMac6400            = 58,
  727.     gestaltPerforma6400            = gestaltPowerMac6400,
  728.     gestaltPerforma6360            = gestaltPerforma6400,
  729.     gestaltMacCentris660AV        = 60,
  730.     gestaltMacQuadra660AV        = gestaltMacCentris660AV,
  731.     gestaltPerforma46x            = 62,
  732.     gestaltPowerMac8100_80        = 65,
  733.     gestaltAWS8150_80            = gestaltPowerMac8100_80,
  734.     gestaltPowerMac9500            = 67,
  735.     gestaltPowerMac9600            = gestaltPowerMac9500,
  736.     gestaltPowerMac7500            = 68,
  737.     gestaltPowerMac7600            = gestaltPowerMac7500,
  738.     gestaltPowerMac8500            = 69,
  739.     gestaltPowerMac8600            = gestaltPowerMac8500,
  740.     gestaltAWS8550                = gestaltPowerMac8500,
  741.     gestaltPowerBook180c        = 71,
  742.     gestaltPowerBook520            = 72,
  743.     gestaltPowerBook520c        = gestaltPowerBook520,
  744.     gestaltPowerBook540            = gestaltPowerBook520,
  745.     gestaltPowerBook540c        = gestaltPowerBook520,
  746.     gestaltPowerMac5400            = 74,
  747.     gestaltPowerMac6100_60        = 75,
  748.     gestaltAWS6150_60            = gestaltPowerMac6100_60,
  749.     gestaltPowerBookDuo270c        = 77,
  750.     gestaltMacQuadra840AV        = 78,
  751.     gestaltPerforma550            = 80,
  752.     gestaltPowerBook165            = 84,
  753.     gestaltPowerBook190            = 85,
  754.     gestaltMacTV                = 88,
  755.     gestaltMacLC475                = 89,
  756.     gestaltPerforma47x            = gestaltMacLC475,
  757.     gestaltMacLC575                = 92,
  758.     gestaltMacQuadra605            = 94,
  759.     gestaltMacQuadra630            = 98,
  760.     gestaltMacLC580                = 99,
  761.     gestaltPerforma580            = gestaltMacLC580,
  762.     gestaltPowerMac6100_66        = 100,
  763.     gestaltAWS6150_66            = gestaltPowerMac6100_66,
  764.     gestaltPowerBookDuo280        = 102,
  765.     gestaltPowerBookDuo280c        = 103,
  766.     gestaltPowerMacLC475        = 104,                            /* Mac LC 475 & PPC Processor Upgrade Card*/
  767.     gestaltPowerMacPerforma47x    = gestaltPowerMacLC475,
  768.     gestaltPowerMacLC575        = 105,                            /* Mac LC 575 & PPC Processor Upgrade Card */
  769.     gestaltPowerMacPerforma57x    = gestaltPowerMacLC575,
  770.     gestaltPowerMacQuadra630    = 106,                            /* Quadra 630 & PPC Processor Upgrade Card*/
  771.     gestaltPowerMacLC630        = gestaltPowerMacQuadra630,        /* Mac LC 630 & PPC Processor Upgrade Card*/
  772.     gestaltPowerMacPerforma63x    = gestaltPowerMacQuadra630,        /* Performa 63x & PPC Processor Upgrade Card*/
  773.     gestaltPowerMac7200            = 108,
  774.     gestaltPowerMac7300            = 109,
  775.     gestaltPowerMac7100_66        = 112,
  776.     gestaltPowerBook150            = 115,
  777.     gestaltPowerMacQuadra700    = 116,                            /* Quadra 700 & Power PC Upgrade Card*/
  778.     gestaltPowerMacQuadra900    = 117,                            /* Quadra 900 & Power PC Upgrade Card */
  779.     gestaltPowerMacQuadra950    = 118,                            /* Quadra 950 & Power PC Upgrade Card */
  780.     gestaltPowerMacCentris610    = 119,                            /* Centris 610 & Power PC Upgrade Card */
  781.     gestaltPowerMacCentris650    = 120,                            /* Centris 650 & Power PC Upgrade Card */
  782.     gestaltPowerMacQuadra610    = 121,                            /* Quadra 610 & Power PC Upgrade Card */
  783.     gestaltPowerMacQuadra650    = 122,                            /* Quadra 650 & Power PC Upgrade Card */
  784.     gestaltPowerMacQuadra800    = 123,                            /* Quadra 800 & Power PC Upgrade Card */
  785.     gestaltPowerBookDuo2300        = 124,
  786.     gestaltPowerBook500PPCUpgrade = 126,
  787.     gestaltPowerBook5300        = 128,
  788.     gestaltPowerBook1400        = 310,
  789.     gestaltPowerBook3400        = 306,
  790.     gestaltPowerBook2400        = 307,
  791.     gestaltPowerMac5500            = 512,
  792.     gestaltPowerMac6500            = 513,
  793.     gestaltPowerMac4400            = 515
  794. };
  795.  
  796.  
  797.  
  798. enum {
  799.     gestaltQuadra605            = gestaltMacQuadra605,
  800.     gestaltQuadra610            = gestaltMacQuadra610,
  801.     gestaltQuadra630            = gestaltMacQuadra630,
  802.     gestaltQuadra650            = gestaltMacQuadra650,
  803.     gestaltQuadra660AV            = gestaltMacQuadra660AV,
  804.     gestaltQuadra700            = gestaltMacQuadra700,
  805.     gestaltQuadra800            = gestaltMacQuadra800,
  806.     gestaltQuadra840AV            = gestaltMacQuadra840AV,
  807.     gestaltQuadra900            = gestaltMacQuadra900,
  808.     gestaltQuadra950            = gestaltMacQuadra950
  809. };
  810.  
  811.  
  812. enum {
  813.     kMachineNameStrID            = -16395
  814. };
  815.  
  816.  
  817. enum {
  818.     gestaltSMPMailerVersion        = FOUR_CHAR_CODE('malr')        /* OCE StandardMail*/
  819. };
  820.  
  821.  
  822. enum {
  823.     gestaltMessageMgrVersion    = FOUR_CHAR_CODE('mess')        /* GX Printing Message Manager Gestalt Selector */
  824. };
  825.  
  826.  
  827. enum {
  828.     gestaltMachineIcon            = FOUR_CHAR_CODE('micn')        /* machine icon */
  829. };
  830.  
  831.  
  832. enum {
  833.     gestaltMiscAttr                = FOUR_CHAR_CODE('misc'),        /* miscellaneous attributes */
  834.     gestaltScrollingThrottle    = 0,                            /* true if scrolling throttle on */
  835.     gestaltSquareMenuBar        = 2                                /* true if menu bar is square */
  836. };
  837.  
  838.  
  839. /*
  840.     The name gestaltMixedModeVersion for the 'mixd' selector is semantically incorrect.
  841.     The same selector has been renamed gestaltMixedModeAttr to properly reflect the
  842.     Inside Mac: PowerPC System Software documentation.  The gestaltMixedModeVersion
  843.     symbol has been preserved only for backwards compatibility.
  844.  
  845.     Developers are forewarned that gestaltMixedModeVersion has a limited lifespan and
  846.     will be removed in a future release of the Interfaces.
  847.  
  848.     For the first version of Mixed Mode, both meanings of the 'mixd' selector are
  849.     functionally identical.  They both return 0x00000001.  In subsequent versions
  850.     of Mixed Mode, however, the 'mixd' selector will not respond with an increasing
  851.     version number, but rather, with 32 attribute bits with various meanings.
  852. */
  853.  
  854. enum {
  855.     gestaltMixedModeVersion        = FOUR_CHAR_CODE('mixd')        /* returns version of Mixed Mode */
  856. };
  857.  
  858.  
  859. enum {
  860.     gestaltMixedModeAttr        = FOUR_CHAR_CODE('mixd'),        /* returns Mixed Mode attributes */
  861.     gestaltMixedModePowerPC        = 0,                            /* true if Mixed Mode supports PowerPC ABI calling conventions */
  862.     gestaltPowerPCAware            = 0,                            /* old name for gestaltMixedModePowerPC */
  863.     gestaltMixedModeCFM68K        = 1,                            /* true if Mixed Mode supports CFM-68K calling conventions */
  864.     gestaltMixedModeCFM68KHasTrap = 2,                            /* true if CFM-68K Mixed Mode implements _MixedModeDispatch (versions 1.0.1 and prior did not) */
  865.     gestaltMixedModeCFM68KHasState = 3                            /* true if CFM-68K Mixed Mode exports Save/RestoreMixedModeState */
  866. };
  867.  
  868.  
  869. enum {
  870.     gestaltQuickTimeConferencing = FOUR_CHAR_CODE('mtlk')        /* returns QuickTime Conferencing version */
  871. };
  872.  
  873.  
  874. enum {
  875.     gestaltMemoryMapAttr        = FOUR_CHAR_CODE('mmap'),        /* Memory map type */
  876.     gestaltMemoryMapSparse        = 0                                /* Sparse memory is on */
  877. };
  878.  
  879.  
  880. enum {
  881.     gestaltMMUType                = FOUR_CHAR_CODE('mmu '),        /* mmu type */
  882.     gestaltNoMMU                = 0,                            /* no MMU */
  883.     gestaltAMU                    = 1,                            /* address management unit */
  884.     gestalt68851                = 2,                            /* 68851 PMMU */
  885.     gestalt68030MMU                = 3,                            /* 68030 built-in MMU */
  886.     gestalt68040MMU                = 4,                            /* 68040 built-in MMU */
  887.     gestaltEMMU1                = 5                                /* Emulated MMU type 1  */
  888. };
  889.  
  890.  
  891. enum {
  892.     gestaltStdNBPAttr            = FOUR_CHAR_CODE('nlup'),        /* standard nbp attributes */
  893.     gestaltStdNBPPresent        = 0,
  894.     gestaltStdNBPSupportsAutoPosition = 1                        /* StandardNBP takes (-1,-1) to mean alert position main screen */
  895. };
  896.  
  897.  
  898. enum {
  899.     gestaltNotificationMgrAttr    = FOUR_CHAR_CODE('nmgr'),        /* notification manager attributes */
  900.     gestaltNotificationPresent    = 0                                /* notification manager exists */
  901. };
  902.  
  903.  
  904. enum {
  905.     gestaltNameRegistryVersion    = FOUR_CHAR_CODE('nreg')        /* NameRegistryLib version number, for System 7.5.2+ usage */
  906. };
  907.  
  908.  
  909. enum {
  910.     gestaltNuBusSlotCount        = FOUR_CHAR_CODE('nubs')        /* count of logical NuBus slots present */
  911. };
  912.  
  913.  
  914. enum {
  915.     gestaltOCEToolboxVersion    = FOUR_CHAR_CODE('ocet'),        /* OCE Toolbox version */
  916.     gestaltOCETB                = 0x0102,                        /* OCE Toolbox version 1.02 */
  917.     gestaltSFServer                = 0x0100                        /* S&F Server version 1.0 */
  918. };
  919.  
  920.  
  921. enum {
  922.     gestaltOCEToolboxAttr        = FOUR_CHAR_CODE('oceu'),        /* OCE Toolbox attributes */
  923.     gestaltOCETBPresent            = 0x01,                            /* OCE toolbox is present, not running */
  924.     gestaltOCETBAvailable        = 0x02,                            /* OCE toolbox is running and available */
  925.     gestaltOCESFServerAvailable    = 0x04,                            /* S&F Server is running and available */
  926.     gestaltOCETBNativeGlueAvailable = 0x10                        /* Native PowerPC Glue routines are availible */
  927. };
  928.  
  929.  
  930. enum {
  931.     gestaltOpenFirmwareInfo        = FOUR_CHAR_CODE('opfw')        /* Open Firmware info */
  932. };
  933.  
  934.  
  935. enum {
  936.     gestaltOSAttr                = FOUR_CHAR_CODE('os  '),        /* o/s attributes */
  937.     gestaltSysZoneGrowable        = 0,                            /* system heap is growable */
  938.     gestaltLaunchCanReturn        = 1,                            /* can return from launch */
  939.     gestaltLaunchFullFileSpec    = 2,                            /* can launch from full file spec */
  940.     gestaltLaunchControl        = 3,                            /* launch control support available */
  941.     gestaltTempMemSupport        = 4,                            /* temp memory support */
  942.     gestaltRealTempMemory        = 5,                            /* temp memory handles are real */
  943.     gestaltTempMemTracked        = 6,                            /* temporary memory handles are tracked */
  944.     gestaltIPCSupport            = 7,                            /* IPC support is present */
  945.     gestaltSysDebuggerSupport    = 8                                /* system debugger support is present */
  946. };
  947.  
  948.  
  949. enum {
  950.     gestaltOSTable                = FOUR_CHAR_CODE('ostt')        /*  OS trap table base  */
  951. };
  952.  
  953.  
  954. enum {
  955.     gestaltPCCard                = FOUR_CHAR_CODE('pccd'),        /*    PC Card attributes*/
  956.     gestaltCardServicesPresent    = 0,                            /*    PC Card 2.0 (68K) API is present*/
  957.     gestaltPCCardFamilyPresent    = 1,                            /*    PC Card 3.x (PowerPC) API is present*/
  958.     gestaltPCCardHasPowerControl = 2,                            /*    PCCardSetPowerLevel is supported*/
  959.     gestaltPCCardSupportsCardBus = 3                            /*    CardBus is supported*/
  960. };
  961.  
  962.  
  963. enum {
  964.     gestaltProcClkSpeed            = FOUR_CHAR_CODE('pclk')        /* processor clock speed in hertz */
  965. };
  966.  
  967.  
  968. enum {
  969.     gestaltPCXAttr                = FOUR_CHAR_CODE('pcxg'),        /* PC Exchange attributes */
  970.     gestaltPCXHas8and16BitFAT    = 0,                            /* PC Exchange supports both 8 and 16 bit FATs */
  971.     gestaltPCXHasProDOS            = 1                                /* PC Exchange supports ProDOS */
  972. };
  973.  
  974.  
  975. enum {
  976.     gestaltLogicalPageSize        = FOUR_CHAR_CODE('pgsz')        /* logical page size */
  977. };
  978.  
  979. /*    System 7.6 and later.  If gestaltScreenCaptureMain is not implemented,
  980.     PictWhap proceeds with screen capture in the usual way.
  981.  
  982.     The high word of gestaltScreenCaptureMain is reserved (use 0).
  983.  
  984.     To disable screen capture to disk, put zero in the low word.  To
  985.     specify a folder for captured pictures, put the vRefNum in the
  986.     low word of gestaltScreenCaptureMain, and put the directory ID in
  987.     gestaltScreenCaptureDir.
  988. */
  989.  
  990. enum {
  991.     gestaltScreenCaptureMain    = FOUR_CHAR_CODE('pic1'),        /* Zero, or vRefNum of disk to hold picture */
  992.     gestaltScreenCaptureDir        = FOUR_CHAR_CODE('pic2')        /* Directory ID of folder to hold picture */
  993. };
  994.  
  995.  
  996. enum {
  997.     gestaltGXPrintingMgrVersion    = FOUR_CHAR_CODE('pmgr')        /* QuickDraw GX Printing Manager Version*/
  998. };
  999.  
  1000.  
  1001. enum {
  1002.     gestaltPopupAttr            = FOUR_CHAR_CODE('pop!'),        /* popup cdef attributes */
  1003.     gestaltPopupPresent            = 0
  1004. };
  1005.  
  1006.  
  1007. enum {
  1008.     gestaltPowerMgrAttr            = FOUR_CHAR_CODE('powr'),        /* power manager attributes */
  1009.     gestaltPMgrExists            = 0,
  1010.     gestaltPMgrCPUIdle            = 1,
  1011.     gestaltPMgrSCC                = 2,
  1012.     gestaltPMgrSound            = 3,
  1013.     gestaltPMgrDispatchExists    = 4,
  1014.     gestaltPMgrSupportsAVPowerStateAtSleepWake = 5
  1015. };
  1016.  
  1017. /*
  1018.  * PPC will return the combination of following bit fields.
  1019.  * e.g. gestaltPPCSupportsRealTime +gestaltPPCSupportsIncoming + gestaltPPCSupportsOutGoing
  1020.  * indicates PPC is cuurently is only supports real time delivery
  1021.  * and both incoming and outgoing network sessions are allowed.
  1022.  * By default local real time delivery is supported as long as PPCInit has been called.*/
  1023.  
  1024. enum {
  1025.     gestaltPPCToolboxAttr        = FOUR_CHAR_CODE('ppc '),        /* PPC toolbox attributes */
  1026.     gestaltPPCToolboxPresent    = 0x0000,                        /* PPC Toolbox is present  Requires PPCInit to be called */
  1027.     gestaltPPCSupportsRealTime    = 0x1000,                        /* PPC Supports real-time delivery */
  1028.     gestaltPPCSupportsIncoming    = 0x0001,                        /* PPC will deny incoming network requests */
  1029.     gestaltPPCSupportsOutGoing    = 0x0002                        /* PPC will deny outgoing network requests */
  1030. };
  1031.  
  1032.  
  1033. enum {
  1034.     gestaltProcessorType        = FOUR_CHAR_CODE('proc'),        /* processor type */
  1035.     gestalt68000                = 1,
  1036.     gestalt68010                = 2,
  1037.     gestalt68020                = 3,
  1038.     gestalt68030                = 4,
  1039.     gestalt68040                = 5
  1040. };
  1041.  
  1042.  
  1043. enum {
  1044.     gestaltSDPPromptVersion        = FOUR_CHAR_CODE('prpv')        /* OCE Standard Directory Panel*/
  1045. };
  1046.  
  1047.  
  1048. enum {
  1049.     gestaltParityAttr            = FOUR_CHAR_CODE('prty'),        /* parity attributes */
  1050.     gestaltHasParityCapability    = 0,                            /* has ability to check parity */
  1051.     gestaltParityEnabled        = 1                                /* parity checking enabled */
  1052. };
  1053.  
  1054.  
  1055. enum {
  1056.     gestaltQD3DVersion            = FOUR_CHAR_CODE('q3v ')        /* Quickdraw 3D version in pack BCD*/
  1057. };
  1058.  
  1059.  
  1060. enum {
  1061.     gestaltQuickdrawVersion        = FOUR_CHAR_CODE('qd  '),        /* quickdraw version */
  1062.     gestaltOriginalQD            = 0x0000,                        /* original 1-bit QD */
  1063.     gestalt8BitQD                = 0x0100,                        /* 8-bit color QD */
  1064.     gestalt32BitQD                = 0x0200,                        /* 32-bit color QD */
  1065.     gestalt32BitQD11            = 0x0201,                        /* 32-bit color QDv1.1 */
  1066.     gestalt32BitQD12            = 0x0220,                        /* 32-bit color QDv1.2 */
  1067.     gestalt32BitQD13            = 0x0230                        /* 32-bit color QDv1.3 */
  1068. };
  1069.  
  1070.  
  1071. enum {
  1072.     gestaltQD3D                    = FOUR_CHAR_CODE('qd3d'),        /* Quickdraw 3D attributes*/
  1073.     gestaltQD3DPresent            = 0                                /* bit 0 set if QD3D available*/
  1074. };
  1075.  
  1076. #if OLDROUTINENAMES
  1077.  
  1078. enum {
  1079.     gestaltQD3DNotPresent        = (0 << gestaltQD3DPresent),
  1080.     gestaltQD3DAvailable        = (1 << gestaltQD3DPresent)
  1081. };
  1082.  
  1083. #endif  /* OLDROUTINENAMES */
  1084.  
  1085.  
  1086. enum {
  1087.     gestaltGXVersion            = FOUR_CHAR_CODE('qdgx')        /* Overall QuickDraw GX Version*/
  1088. };
  1089.  
  1090.  
  1091. enum {
  1092.     gestaltQuickdrawFeatures    = FOUR_CHAR_CODE('qdrw'),        /* quickdraw features */
  1093.     gestaltHasColor                = 0,                            /* color quickdraw present */
  1094.     gestaltHasDeepGWorlds        = 1,                            /* GWorlds can be deeper than 1-bit */
  1095.     gestaltHasDirectPixMaps        = 2,                            /* PixMaps can be direct (16 or 32 bit) */
  1096.     gestaltHasGrayishTextOr        = 3,                            /* supports text mode grayishTextOr */
  1097.     gestaltSupportsMirroring    = 4                                /* Supports video mirroring via the Display Manager. */
  1098. };
  1099.  
  1100.  
  1101. enum {
  1102.     gestaltQuickTimeConferencingInfo = FOUR_CHAR_CODE('qtci')    /* returns pointer to QuickTime Conferencing information */
  1103. };
  1104.  
  1105.  
  1106. enum {
  1107.     gestaltQuickTimeVersion        = FOUR_CHAR_CODE('qtim'),        /* returns version of QuickTime */
  1108.     gestaltQuickTime            = FOUR_CHAR_CODE('qtim')        /* gestaltQuickTime is old name for gestaltQuickTimeVersion */
  1109. };
  1110.  
  1111.  
  1112. enum {
  1113.     gestaltQuickTimeFeatures    = FOUR_CHAR_CODE('qtrs'),
  1114.     gestaltPPCQuickTimeLibPresent = 0                            /* PowerPC QuickTime glue library is present */
  1115. };
  1116.  
  1117.  
  1118. enum {
  1119.     gestaltQTVRMgrAttr            = FOUR_CHAR_CODE('qtvr'),        /* QuickTime VR attributes                               */
  1120.     gestaltQTVRMgrPresent        = 0,                            /* QTVR API is present                                   */
  1121.     gestaltQTVRObjMoviesPresent    = 1,                            /* QTVR runtime knows about object movies                */
  1122.     gestaltQTVRCylinderPanosPresent = 2                            /* QTVR runtime knows about cylindrical panoramic movies */
  1123. };
  1124.  
  1125.  
  1126. enum {
  1127.     gestaltQTVRMgrVers            = FOUR_CHAR_CODE('qtvv')        /* QuickTime VR version                                  */
  1128. };
  1129.  
  1130.  
  1131. enum {
  1132.     gestaltPhysicalRAMSize        = FOUR_CHAR_CODE('ram ')        /* physical RAM size */
  1133. };
  1134.  
  1135.  
  1136. enum {
  1137.     gestaltRBVAddr                = FOUR_CHAR_CODE('rbv ')        /* RBV base address  */
  1138. };
  1139.  
  1140.  
  1141. enum {
  1142.     gestaltROMSize                = FOUR_CHAR_CODE('rom ')        /* rom size */
  1143. };
  1144.  
  1145.  
  1146. enum {
  1147.     gestaltROMVersion            = FOUR_CHAR_CODE('romv')        /* rom version */
  1148. };
  1149.  
  1150.  
  1151. enum {
  1152.     gestaltResourceMgrAttr        = FOUR_CHAR_CODE('rsrc'),        /* Resource Mgr attributes */
  1153.     gestaltPartialRsrcs            = 0                                /* True if partial resources exist */
  1154. };
  1155.  
  1156.  
  1157. enum {
  1158.     gestaltRealtimeMgrAttr        = FOUR_CHAR_CODE('rtmr'),        /* Realtime manager attributes            */
  1159.     gestaltRealtimeMgrPresent    = 0                                /* true if the Realtime manager is present     */
  1160. };
  1161.  
  1162.  
  1163. enum {
  1164.     gestaltSCCReadAddr            = FOUR_CHAR_CODE('sccr')        /* scc read base address  */
  1165. };
  1166.  
  1167.  
  1168. enum {
  1169.     gestaltSCCWriteAddr            = FOUR_CHAR_CODE('sccw')        /* scc read base address  */
  1170. };
  1171.  
  1172.  
  1173. enum {
  1174.     gestaltScrapMgrAttr            = FOUR_CHAR_CODE('scra'),        /* Scrap Manager attributes */
  1175.     gestaltScrapMgrTranslationAware = 0                            /* True if scrap manager is translation aware */
  1176. };
  1177.  
  1178.  
  1179. enum {
  1180.     gestaltScriptMgrVersion        = FOUR_CHAR_CODE('scri')        /* Script Manager version number     */
  1181. };
  1182.  
  1183.  
  1184. enum {
  1185.     gestaltScriptCount            = FOUR_CHAR_CODE('scr#')        /* number of active script systems   */
  1186. };
  1187.  
  1188.  
  1189. enum {
  1190.     gestaltSCSI                    = FOUR_CHAR_CODE('scsi'),        /* SCSI Manager attributes */
  1191.     gestaltAsyncSCSI            = 0,                            /* Supports Asynchronous SCSI */
  1192.     gestaltAsyncSCSIINROM        = 1,                            /* Async scsi is in ROM (available for booting) */
  1193.     gestaltSCSISlotBoot            = 2                                /* ROM supports Slot-style PRAM for SCSI boots (PDM and later) */
  1194. };
  1195.  
  1196.  
  1197. enum {
  1198.     gestaltControlStripAttr        = FOUR_CHAR_CODE('sdev'),        /* Control Strip attributes */
  1199.     gestaltControlStripExists    = 0,                            /* Control Strip is installed */
  1200.     gestaltControlStripVersionFixed = 1,                        /* Control Strip version Gestalt selector was fixed */
  1201.     gestaltControlStripUserFont    = 2,                            /* supports user-selectable font/size */
  1202.     gestaltControlStripUserHotKey = 3                            /* support user-selectable hot key to show/hide the window */
  1203. };
  1204.  
  1205.  
  1206. enum {
  1207.     gestaltSDPStandardDirectoryVersion = FOUR_CHAR_CODE('sdvr')    /* OCE Standard Directory Panel*/
  1208. };
  1209.  
  1210.  
  1211. enum {
  1212.     gestaltSerialAttr            = FOUR_CHAR_CODE('ser '),        /* Serial attributes */
  1213.     gestaltHasGPIaToDCDa        = 0,                            /* GPIa connected to DCDa*/
  1214.     gestaltHasGPIaToRTxCa        = 1,                            /* GPIa connected to RTxCa clock input*/
  1215.     gestaltHasGPIbToDCDb        = 2                                /* GPIb connected to DCDb */
  1216. };
  1217.  
  1218.  
  1219. enum {
  1220.     gestaltShutdownAttributes    = FOUR_CHAR_CODE('shut'),        /* ShutDown Manager Attributes */
  1221.     gestaltShutdownHassdOnBootVolUnmount = 0                    /* True if ShutDown Manager unmounts boot & VM volume at shutdown time. */
  1222. };
  1223.  
  1224.  
  1225. enum {
  1226.     gestaltNuBusConnectors        = FOUR_CHAR_CODE('sltc')        /* bitmap of NuBus connectors*/
  1227. };
  1228.  
  1229.  
  1230. enum {
  1231.     gestaltSlotAttr                = FOUR_CHAR_CODE('slot'),        /* slot attributes  */
  1232.     gestaltSlotMgrExists        = 0,                            /* true is slot mgr exists  */
  1233.     gestaltNuBusPresent            = 1,                            /* NuBus slots are present  */
  1234.     gestaltSESlotPresent        = 2,                            /* SE PDS slot present  */
  1235.     gestaltSE30SlotPresent        = 3,                            /* SE/30 slot present  */
  1236.     gestaltPortableSlotPresent    = 4                                /* Portable’s slot present  */
  1237. };
  1238.  
  1239.  
  1240. enum {
  1241.     gestaltFirstSlotNumber        = FOUR_CHAR_CODE('slt1')        /* returns first physical slot */
  1242. };
  1243.  
  1244.  
  1245. enum {
  1246.     gestaltSoundAttr            = FOUR_CHAR_CODE('snd '),        /* sound attributes */
  1247.     gestaltStereoCapability        = 0,                            /* sound hardware has stereo capability */
  1248.     gestaltStereoMixing            = 1,                            /* stereo mixing on external speaker */
  1249.     gestaltSoundIOMgrPresent    = 3,                            /* The Sound I/O Manager is present */
  1250.     gestaltBuiltInSoundInput    = 4,                            /* built-in Sound Input hardware is present */
  1251.     gestaltHasSoundInputDevice    = 5,                            /* Sound Input device available */
  1252.     gestaltPlayAndRecord        = 6,                            /* built-in hardware can play and record simultaneously */
  1253.     gestalt16BitSoundIO            = 7,                            /* sound hardware can play and record 16-bit samples */
  1254.     gestaltStereoInput            = 8,                            /* sound hardware can record stereo */
  1255.     gestaltLineLevelInput        = 9,                            /* sound input port requires line level */
  1256.                                                                 /* the following bits are not defined prior to Sound Mgr 3.0 */
  1257.     gestaltSndPlayDoubleBuffer    = 10,                            /* SndPlayDoubleBuffer available, set by Sound Mgr 3.0 and later */
  1258.     gestaltMultiChannels        = 11,                            /* multiple channel support, set by Sound Mgr 3.0 and later */
  1259.     gestalt16BitAudioSupport    = 12                            /* 16 bit audio data supported, set by Sound Mgr 3.0 and later */
  1260. };
  1261.  
  1262.  
  1263. enum {
  1264.     gestaltSMPSPSendLetterVersion = FOUR_CHAR_CODE('spsl')        /* OCE StandardMail*/
  1265. };
  1266.  
  1267.  
  1268. enum {
  1269.     gestaltSpeechRecognitionAttr = FOUR_CHAR_CODE('srta'),        /* speech recognition attributes */
  1270.     gestaltDesktopSpeechRecognition = 1,                        /* recognition thru the desktop microphone is available */
  1271.     gestaltTelephoneSpeechRecognition = 2                        /* recognition thru the telephone is available */
  1272. };
  1273.  
  1274.  
  1275. enum {
  1276.     gestaltSpeechRecognitionVersion = FOUR_CHAR_CODE('srtb')    /* speech recognition version (0x0150 is the first version that fully supports the API) */
  1277. };
  1278.  
  1279.  
  1280. enum {
  1281.     gestaltSoftwareVendorCode    = FOUR_CHAR_CODE('srad'),        /* Returns system software vendor information */
  1282.     gestaltSoftwareVendorApple    = FOUR_CHAR_CODE('Appl'),        /* System software sold by Apple */
  1283.     gestaltSoftwareVendorLicensee = FOUR_CHAR_CODE('Lcns')        /* System software sold by licensee */
  1284. };
  1285.  
  1286.  
  1287. enum {
  1288.     gestaltStandardFileAttr        = FOUR_CHAR_CODE('stdf'),        /* Standard File attributes */
  1289.     gestaltStandardFile58        = 0,                            /* True if selectors 5-8 (StandardPutFile-CustomGetFile) are supported */
  1290.     gestaltStandardFileTranslationAware = 1,                    /* True if standard file is translation manager aware */
  1291.     gestaltStandardFileHasColorIcons = 2,                        /* True if standard file has 16x16 color icons */
  1292.     gestaltStandardFileUseGenericIcons = 3,                        /* Standard file LDEF to use only the system generic icons if true */
  1293.     gestaltStandardFileHasDynamicVolumeAllocation = 4            /* True if standard file supports more than 20 volumes */
  1294. };
  1295.  
  1296.  
  1297. enum {
  1298.     gestaltSysArchitecture        = FOUR_CHAR_CODE('sysa'),        /* Native System Architecture */
  1299.     gestalt68k                    = 1,                            /* Motorola MC68k architecture */
  1300.     gestaltPowerPC                = 2                                /* IBM PowerPC architecture */
  1301. };
  1302.  
  1303.  
  1304. enum {
  1305.     gestaltSystemUpdateVersion    = FOUR_CHAR_CODE('sysu')        /* System Update version */
  1306. };
  1307.  
  1308.  
  1309. enum {
  1310.     gestaltSystemVersion        = FOUR_CHAR_CODE('sysv')        /* system version*/
  1311. };
  1312.  
  1313.  
  1314. enum {
  1315.     gestaltToolboxTable            = FOUR_CHAR_CODE('tbtt')        /*  OS trap table base  */
  1316. };
  1317.  
  1318.  
  1319. enum {
  1320.     gestaltTextEditVersion        = FOUR_CHAR_CODE('te  '),        /* TextEdit version number */
  1321.     gestaltTE1                    = 1,                            /* TextEdit in MacIIci ROM */
  1322.     gestaltTE2                    = 2,                            /* TextEdit with 6.0.4 Script Systems on MacIIci (Script bug fixes for MacIIci) */
  1323.     gestaltTE3                    = 3,                            /* TextEdit with 6.0.4 Script Systems all but MacIIci */
  1324.     gestaltTE4                    = 4,                            /* TextEdit in System 7.0 */
  1325.     gestaltTE5                    = 5                                /* TextWidthHook available in TextEdit */
  1326. };
  1327.  
  1328.  
  1329. enum {
  1330.     gestaltTEAttr                = FOUR_CHAR_CODE('teat'),        /* TextEdit attributes */
  1331.     gestaltTEHasGetHiliteRgn    = 0,                            /* TextEdit has TEGetHiliteRgn */
  1332.     gestaltTESupportsInlineInput = 1,                            /* TextEdit does Inline Input */
  1333.     gestaltTESupportsTextObjects = 2                            /* TextEdit does Text Objects */
  1334. };
  1335.  
  1336.  
  1337. enum {
  1338.     gestaltTeleMgrAttr            = FOUR_CHAR_CODE('tele'),        /* Telephone manager attributes */
  1339.     gestaltTeleMgrPresent        = 0,
  1340.     gestaltTeleMgrPowerPCSupport = 1,
  1341.     gestaltTeleMgrSoundStreams    = 2,
  1342.     gestaltTeleMgrAutoAnswer    = 3,
  1343.     gestaltTeleMgrIndHandset    = 4,
  1344.     gestaltTeleMgrSilenceDetect    = 5,
  1345.     gestaltTeleMgrNewTELNewSupport = 6
  1346. };
  1347.  
  1348.  
  1349. enum {
  1350.     gestaltTermMgrAttr            = FOUR_CHAR_CODE('term'),        /* terminal mgr attributes */
  1351.     gestaltTermMgrPresent        = 0,
  1352.     gestaltTermMgrErrorString    = 2
  1353. };
  1354.  
  1355.  
  1356. enum {
  1357.     gestaltThreadMgrAttr        = FOUR_CHAR_CODE('thds'),        /* Thread Manager attributes */
  1358.     gestaltThreadMgrPresent        = 0,                            /* bit true if Thread Mgr is present */
  1359.     gestaltSpecificMatchSupport    = 1,                            /* bit true if Thread Mgr supports exact match creation option */
  1360.     gestaltThreadsLibraryPresent = 2                            /* bit true if Thread Mgr shared library is present */
  1361. };
  1362.  
  1363.  
  1364. enum {
  1365.     gestaltTimeMgrVersion        = FOUR_CHAR_CODE('tmgr'),        /* time mgr version */
  1366.     gestaltStandardTimeMgr        = 1,                            /* standard time mgr is present */
  1367.     gestaltRevisedTimeMgr        = 2,                            /* revised time mgr is present */
  1368.     gestaltExtendedTimeMgr        = 3                                /* extended time mgr is present */
  1369. };
  1370.  
  1371.  
  1372. enum {
  1373.     gestaltTSMTEVersion            = FOUR_CHAR_CODE('tmTV'),
  1374.     gestaltTSMTE1                = 0x0100,
  1375.     gestaltTSMTE15                = 0x0150,
  1376.     gestaltTSMTE2                = 0x0200
  1377. };
  1378.  
  1379.  
  1380. enum {
  1381.     gestaltTSMTEAttr            = FOUR_CHAR_CODE('tmTE'),
  1382.     gestaltTSMTEPresent            = 0,
  1383.     gestaltTSMTE                = 0                                /* gestaltTSMTE is old name for gestaltTSMTEPresent */
  1384. };
  1385.  
  1386.  
  1387. enum {
  1388.     gestaltALMAttr                = FOUR_CHAR_CODE('trip'),        /* Apple Location Manager attributes (see also gestaltALMVers) */
  1389.     gestaltALMPresent            = 0,                            /* bit true if ALM is available */
  1390.     gestaltALMHasSFLocation        = 1,                            /* bit true if Put/Get/Merge Location calls are implmented */
  1391.     gestaltALMHasCFMSupport        = 2,                            /* bit true if CFM-based modules are supported */
  1392.     gestaltALMHasRescanNotifiers = 3                            /* bit true if Rescan notifications/events will be sent to clients */
  1393. };
  1394.  
  1395.  
  1396. enum {
  1397.     gestaltTSMgrVersion            = FOUR_CHAR_CODE('tsmv'),        /* Text Services Mgr version, if present */
  1398.     gestaltTSMgr15                = 0x0150,
  1399.     gestaltTSMgr2                = 0x0200
  1400. };
  1401.  
  1402.  
  1403. enum {
  1404.     gestaltTSMgrAttr            = FOUR_CHAR_CODE('tsma'),        /* Text Services Mgr attributes, if present */
  1405.     gestaltTSMDisplayMgrAwareBit = 0,                            /* TSM knows about display manager */
  1406.     gestaltTSMdoesTSMTEBit        = 1                                /* TSM has integrated TSMTE */
  1407. };
  1408.  
  1409.  
  1410. enum {
  1411.     gestaltSpeechAttr            = FOUR_CHAR_CODE('ttsc'),        /* Speech Manager attributes */
  1412.     gestaltSpeechMgrPresent        = 0,                            /* bit set indicates that Speech Manager exists */
  1413.     gestaltSpeechHasPPCGlue        = 1                                /* bit set indicates that native PPC glue for Speech Manager API exists */
  1414. };
  1415.  
  1416.  
  1417. enum {
  1418.     gestaltTVAttr                = FOUR_CHAR_CODE('tv  '),        /* TV version */
  1419.     gestaltHasTVTuner            = 0,                            /* supports Philips FL1236F video tuner */
  1420.     gestaltHasSoundFader        = 1,                            /* supports Philips TEA6330 Sound Fader chip */
  1421.     gestaltHasHWClosedCaptioning = 2,                            /* supports Philips SAA5252 Closed Captioning */
  1422.     gestaltHasIRRemote            = 3,                            /* supports CyclopsII Infra Red Remote control */
  1423.     gestaltHasVidDecoderScaler    = 4,                            /* supports Philips SAA7194 Video Decoder/Scaler */
  1424.     gestaltHasStereoDecoder        = 5,                            /* supports Sony SBX1637A-01 stereo decoder */
  1425.     gestaltHasSerialFader        = 6,                            /* has fader audio in serial with system audio */
  1426.     gestaltHasFMTuner            = 7,                            /* has FM Tuner from donnybrook card */
  1427.     gestaltHasSystemIRFunction    = 8,                            /* Infra Red button function is set up by system and not by Video Startup */
  1428.     gestaltIRDisabled            = 9,                            /* Infra Red remote is not disabled. */
  1429.     gestaltINeedIRPowerOffConfirm = 10,                            /* Need IR power off confirm dialog. */
  1430.     gestaltHasZoomedVideo        = 11                            /* Has Zoomed Video PC Card video input. */
  1431. };
  1432.  
  1433.  
  1434.  
  1435. enum {
  1436.     gestaltVersion                = FOUR_CHAR_CODE('vers'),        /* gestalt version */
  1437.     gestaltValueImplementedVers    = 5                                /* version of gestalt where gestaltValue is implemented. */
  1438. };
  1439.  
  1440.  
  1441. enum {
  1442.     gestaltVIA1Addr                = FOUR_CHAR_CODE('via1')        /* via 1 base address  */
  1443. };
  1444.  
  1445.  
  1446. enum {
  1447.     gestaltVIA2Addr                = FOUR_CHAR_CODE('via2')        /* via 2 base address  */
  1448. };
  1449.  
  1450.  
  1451. enum {
  1452.     gestaltVMAttr                = FOUR_CHAR_CODE('vm  '),        /* virtual memory attributes */
  1453.     gestaltVMPresent            = 0,                            /* true if virtual memory is present */
  1454.     gestaltVMHasLockMemoryForOutput = 1,                        /* true if LockMemoryForOutput is available */
  1455.     gestaltVMFilemappingOn        = 3                                /* true if filemapping is available */
  1456. };
  1457.  
  1458.  
  1459. enum {
  1460.     gestaltALMVers                = FOUR_CHAR_CODE('walk')        /* Apple Location Manager version (see also gestaltALMAttr) */
  1461. };
  1462.  
  1463.  
  1464. enum {
  1465.     gestaltTranslationAttr        = FOUR_CHAR_CODE('xlat'),        /* Translation Manager attributes */
  1466.     gestaltTranslationMgrExists    = 0,                            /* True if translation manager exists */
  1467.     gestaltTranslationMgrHintOrder = 1,                            /* True if hint order reversal in effect */
  1468.     gestaltTranslationPPCAvail    = 2,
  1469.     gestaltTranslationGetPathAPIAvail = 3
  1470. };
  1471.  
  1472.  
  1473. enum {
  1474.     gestaltExtToolboxTable        = FOUR_CHAR_CODE('xttt')        /* Extended Toolbox trap table base */
  1475. };
  1476.  
  1477.  
  1478.  
  1479.  
  1480. #if PRAGMA_STRUCT_ALIGN
  1481.     #pragma options align=reset
  1482. #elif PRAGMA_STRUCT_PACKPUSH
  1483.     #pragma pack(pop)
  1484. #elif PRAGMA_STRUCT_PACK
  1485.     #pragma pack()
  1486. #endif
  1487.  
  1488. #ifdef PRAGMA_IMPORT_OFF
  1489. #pragma import off
  1490. #elif PRAGMA_IMPORT
  1491. #pragma import reset
  1492. #endif
  1493.  
  1494. #ifdef __cplusplus
  1495. }
  1496. #endif
  1497.  
  1498. #endif /* __GESTALT__ */
  1499.  
  1500.